﻿@model IEnumerable<GolfController.Models.Course>
           

                           
<table>
    <tr>
        <th>
            Name
        </th>
  
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
              @Html.ActionLink( item.Name, "Details", new { id = item.ID }) |
        </td>
   
        <td>
            @Html.ActionLink("View Holes", "ViewHoles" , "Hole", new { id=item.ID } , null ) 
        </td>
    </tr>
}

</table>

